[<tag id="resourcepath" type="meta" value="/DesktopModules/NBright/NBrightBuy/App_LocalResources/" />]

<li class="discountcode form-group"> <!-- class="modelitem" is needed for JS postback update -->
    
    [<tag id="fields" type="hidden" value="genxml/textbox/coderef,genxml/textbox/description,genxml/textbox/amount,genxml/textbox/validuntil,genxml/textbox/usageleft,genxml/textbox/percentage,genxml/checkbox/notsale" />] <!-- update fields -->

	<div class="col-sm-12 form-horizontal">
	    <div class="row">
  			        <div class="col-sm-2">
			            <label class="control-label">[<tag type="valueof" resourcekey="General.Code" />]</label>
			            [<tag id="coderef" cssclass="form-control" type="textbox" Text="" />]
			        </div>
			        <div class="col-sm-2">
			            <label class="control-label">[<tag type="valueof" resourcekey="General.Description" />]</label>
			            [<tag id="description" cssclass="form-control" type="textbox" Text="" />]
			        </div>
			        <div class="col-sm-1">
			            <label class="control-label">[<tag type="valueof" resourcekey="General.Amount" />] ({Settings:currencysymbol})</label>
			            [<tag id="amount" cssclass="form-control" type="textbox" Text="" />]
			        </div>
			        <div class="col-sm-3">
			            [<tag id="notsale"  type="checkbox" resourcekey="Clients.notsale" />]
			        </div>            
	    </div>
	    <div class="row">
			        <div class="col-sm-2">
			            <label class="control-label">[<tag type="valueof" resourcekey="Clients.validuntil" />]</label>
			            [<tag id="validuntil" cssclass="form-control" type="textbox" Text="" datatype="date" />]
			        </div>
			        <div class="col-sm-1">
			            <label class="control-label">[<tag type="valueof" resourcekey="Clients.usageleft" />]</label>
			            [<tag id="usageleft" cssclass="form-control" type="textbox" Text="" />]
			        </div>
	        <div class="col-sm-3">
	            <label class="control-label">[<tag type="valueof" resourcekey="Clients.validcategory" />]</label>
	            [<tag id="validcategory" cssclass="form-control" type="catdropdown" showhidden="True" allowblank="True" lang="{Settings:culturecode}"/>]
	        </div>
	        <div class="col-sm-2"><label class="control-label">&nbsp;</label><br><a class="removediscountcode btn btn-danger input-sm">[<tag type="htmlof" resourcekey="General.cmdRemoveButton" />]</a></div><!-- class required for ajax -->

	    </div>
	</div>
</li>